package crazyboyfeng.autodroid.service;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import crazyboyfeng.autodroid.tasks.TaskManager;

public class BootCompletedReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		 if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) 
		 { 
			 //重新注册所有Alarm
			 TaskManager mTM = new TaskManager();
			 mTM.resetAllTaskActive();
		 }    
	}
}
